package service.Impl;

import dao.ApplyDao;
import entity.Apply;
import service.ApplyService;

import java.util.List;

public class ApplyServiceImpl implements ApplyService {
    private ApplyDao applyDao = new dao.Impl.ApplyDaoImpl();
    @Override
    public List<Apply> findAll() {

        return applyDao.findAll();
    }

    @Override
    public List<Apply> findByState(int state) {
        return applyDao.findByState(state);
    }

    @Override
    public void update(Apply apply) {
        applyDao.update(apply);
    }

    @Override
    public void delete(int id) {
        applyDao.delete(id);
    }

    @Override
    public Apply findById(int id) {
        return applyDao.fingById(id);
    }

    @Override
    public void add(Apply apply) {
        applyDao.add(apply);
    }


}
